const express = require('express')
const app = express()
const path = require('path')

// 设置静态资源的访问
app.use(express.static(path.join(__dirname, 'src')))
app.use(express.static(path.join(__dirname, '../')))

app.listen(3000, function(req, res) {
  console.log("请打开http://localhost:3000访问页面")
})